//
//  QuestionTableViewCell.h
//  MingShi
//
//  Created by MJiao on 15/6/26.
//  Copyright (c) 2015年 MJiao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class Question;

/**
 *  问题TableViewCell
 */
@interface QuestionTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UILabel *lbTitle;
@property (weak, nonatomic) IBOutlet UILabel *lbSubject;
@property (weak, nonatomic) IBOutlet UILabel *lbStatus;
@property (weak, nonatomic) IBOutlet UIImageView *ivScreenshot;
@property (weak, nonatomic) IBOutlet UILabel *lbReply;
@property (weak, nonatomic) IBOutlet UILabel *lbPostTime;
@property (weak, nonatomic) IBOutlet UILabel *lbGradeName;
@property (weak, nonatomic) IBOutlet UIImageView *ivRsolveFlag;
@property (weak, nonatomic) IBOutlet UILabel *lbUserName;
@property (weak, nonatomic) IBOutlet UIImageView *lbUserImage;


@property(nonatomic, strong) Question *question;

/**
 *   设置图标的下载地址
 *
 *  @param url              <#url description#>
 *  @param placeholderImage <#placeholderImage description#>
 */
@property(weak, nonatomic) IBOutlet NSLayoutConstraint *questionImageeLayoutFixHeightConstraint;
- (void)setAnswerImageWithURL:(NSString *)url
       placeholderImage:(NSString *)placeholderImage;

- (void)setAnswerImageWithURL: (NSString *)url
       placeholderImage:(NSString *)placeholderImage success:(void (^)(UIImage* image))success
                failure:(void (^)(NSError *error))failure;
 

@end
